/*
This file defines the headers and footers of common image formats:
	-JPG
	-GIF
	-PNG
	-BMP
*/

#define JPG_HEADER "\xFF\xD8\xFF\xE0\x00\x10\x4A\x46\x49\x46\x00"
#define JPG_FOOTER "\xFF\xD9"
#define JPG_HEADER_SIZE 11
#define JPG_FOOTER_SIZE 2

#define GIF_HEADER "\x47\x49\x46\x38"
#define GIF_FOOTER "\x00\x3B"
#define GIF_HEADER_SIZE 4
#define GIF_FOOTER_SIZE 2

/*
#define BMP_HEADER \x42\x4D
#define BMP_FOOTER \x00\x3B
#define BMP_HEADER_SIZE sizeof(BMP_HEADER)
#define BMP_FOOTER_SIZE sizeof(BMP_FOOTER)
*/

#define PNG_HEADER "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A"
#define PNG_FOOTER "\x00\x00\x00\x00\x49\x45\x4E\x44\xAE\x42\x60\x82"
#define PNG_HEADER_SIZE 8
#define PNG_FOOTER_SIZE 12